package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class GametypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public GametypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGtnoIsNull() {
            addCriterion("gtno is null");
            return (Criteria) this;
        }

        public Criteria andGtnoIsNotNull() {
            addCriterion("gtno is not null");
            return (Criteria) this;
        }

        public Criteria andGtnoEqualTo(String value) {
            addCriterion("gtno =", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotEqualTo(String value) {
            addCriterion("gtno <>", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoGreaterThan(String value) {
            addCriterion("gtno >", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoGreaterThanOrEqualTo(String value) {
            addCriterion("gtno >=", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLessThan(String value) {
            addCriterion("gtno <", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLessThanOrEqualTo(String value) {
            addCriterion("gtno <=", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLike(String value) {
            addCriterion("gtno like", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotLike(String value) {
            addCriterion("gtno not like", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoIn(List<String> values) {
            addCriterion("gtno in", values, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotIn(List<String> values) {
            addCriterion("gtno not in", values, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoBetween(String value1, String value2) {
            addCriterion("gtno between", value1, value2, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotBetween(String value1, String value2) {
            addCriterion("gtno not between", value1, value2, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnameIsNull() {
            addCriterion("gtName is null");
            return (Criteria) this;
        }

        public Criteria andGtnameIsNotNull() {
            addCriterion("gtName is not null");
            return (Criteria) this;
        }

        public Criteria andGtnameEqualTo(String value) {
            addCriterion("gtName =", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameNotEqualTo(String value) {
            addCriterion("gtName <>", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameGreaterThan(String value) {
            addCriterion("gtName >", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameGreaterThanOrEqualTo(String value) {
            addCriterion("gtName >=", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameLessThan(String value) {
            addCriterion("gtName <", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameLessThanOrEqualTo(String value) {
            addCriterion("gtName <=", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameLike(String value) {
            addCriterion("gtName like", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameNotLike(String value) {
            addCriterion("gtName not like", value, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameIn(List<String> values) {
            addCriterion("gtName in", values, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameNotIn(List<String> values) {
            addCriterion("gtName not in", values, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameBetween(String value1, String value2) {
            addCriterion("gtName between", value1, value2, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtnameNotBetween(String value1, String value2) {
            addCriterion("gtName not between", value1, value2, "gtname");
            return (Criteria) this;
        }

        public Criteria andGtimgIsNull() {
            addCriterion("gtImg is null");
            return (Criteria) this;
        }

        public Criteria andGtimgIsNotNull() {
            addCriterion("gtImg is not null");
            return (Criteria) this;
        }

        public Criteria andGtimgEqualTo(String value) {
            addCriterion("gtImg =", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgNotEqualTo(String value) {
            addCriterion("gtImg <>", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgGreaterThan(String value) {
            addCriterion("gtImg >", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgGreaterThanOrEqualTo(String value) {
            addCriterion("gtImg >=", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgLessThan(String value) {
            addCriterion("gtImg <", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgLessThanOrEqualTo(String value) {
            addCriterion("gtImg <=", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgLike(String value) {
            addCriterion("gtImg like", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgNotLike(String value) {
            addCriterion("gtImg not like", value, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgIn(List<String> values) {
            addCriterion("gtImg in", values, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgNotIn(List<String> values) {
            addCriterion("gtImg not in", values, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgBetween(String value1, String value2) {
            addCriterion("gtImg between", value1, value2, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtimgNotBetween(String value1, String value2) {
            addCriterion("gtImg not between", value1, value2, "gtimg");
            return (Criteria) this;
        }

        public Criteria andGtdescribeIsNull() {
            addCriterion("gtDescribe is null");
            return (Criteria) this;
        }

        public Criteria andGtdescribeIsNotNull() {
            addCriterion("gtDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andGtdescribeEqualTo(String value) {
            addCriterion("gtDescribe =", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeNotEqualTo(String value) {
            addCriterion("gtDescribe <>", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeGreaterThan(String value) {
            addCriterion("gtDescribe >", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("gtDescribe >=", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeLessThan(String value) {
            addCriterion("gtDescribe <", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeLessThanOrEqualTo(String value) {
            addCriterion("gtDescribe <=", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeLike(String value) {
            addCriterion("gtDescribe like", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeNotLike(String value) {
            addCriterion("gtDescribe not like", value, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeIn(List<String> values) {
            addCriterion("gtDescribe in", values, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeNotIn(List<String> values) {
            addCriterion("gtDescribe not in", values, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeBetween(String value1, String value2) {
            addCriterion("gtDescribe between", value1, value2, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtdescribeNotBetween(String value1, String value2) {
            addCriterion("gtDescribe not between", value1, value2, "gtdescribe");
            return (Criteria) this;
        }

        public Criteria andGtstateIsNull() {
            addCriterion("gtState is null");
            return (Criteria) this;
        }

        public Criteria andGtstateIsNotNull() {
            addCriterion("gtState is not null");
            return (Criteria) this;
        }

        public Criteria andGtstateEqualTo(Integer value) {
            addCriterion("gtState =", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateNotEqualTo(Integer value) {
            addCriterion("gtState <>", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateGreaterThan(Integer value) {
            addCriterion("gtState >", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("gtState >=", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateLessThan(Integer value) {
            addCriterion("gtState <", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateLessThanOrEqualTo(Integer value) {
            addCriterion("gtState <=", value, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateIn(List<Integer> values) {
            addCriterion("gtState in", values, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateNotIn(List<Integer> values) {
            addCriterion("gtState not in", values, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateBetween(Integer value1, Integer value2) {
            addCriterion("gtState between", value1, value2, "gtstate");
            return (Criteria) this;
        }

        public Criteria andGtstateNotBetween(Integer value1, Integer value2) {
            addCriterion("gtState not between", value1, value2, "gtstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}